<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="../comum/CabecalhoTaglibComum.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PAQS | Programa de Avaliação de Qualidade de Software</title>
<style>
<jsp:include page="/comum/geral.css"/>
</style> 
</head>
<f:view>
<body>
	<h:form id="projetoForm">
<%@include file="../comum/CabecalhoComum.jsp"%>
<%@include file="../comum/CabecalhoUsuarioComum.jsp"%>
<div class="corpo">
	<%@include file="../comum/Mensagem.jsp"%>
	<div class="caminho">
		<h:outputText value="Onde você está: "></h:outputText>
		<h:commandLink value="Lista de Projetos" action="#{pc_CaracteristicaEdit.voltarListaProjetos}"></h:commandLink>
		<h:outputText value=" >> "></h:outputText>
		<h:commandLink value="Projeto #{pc_CaracteristicaEdit.projeto.nome}" action="#{pc_CaracteristicaEdit.voltarProjetoEdit}"></h:commandLink>
		<h:outputText value=" >> "></h:outputText>
		<h:commandLink value="Iterações" action="#{pc_CaracteristicaEdit.voltarListIteracao}"></h:commandLink>
		<h:outputText value=" >> "></h:outputText>
		<h:commandLink value="#{pc_CaracteristicaEdit.iterNumero}ª iteracao" action="#{pc_CaracteristicaEdit.voltarIteracaoEdit}"/>
		<h:outputText value=" >> "></h:outputText>
		<h:commandLink value="#{pc_CaracteristicaEdit.nomeQualidade}" action="#{pc_CaracteristicaEdit.voltarQualidadeSelect}"/>
		<h:outputText value=" >> "></h:outputText>
		<h:outputText value="Característica"></h:outputText>
	</div>
<h:dataTable value="#{pc_CaracteristicaEdit.listaCaracteristicas}" var="tipoCaracteristica">
	<h:column>
		<f:facet name="header">
			<h:outputText value="Característica"></h:outputText>
		</f:facet>
		<h:outputText id="nome" value="#{tipoCaracteristica.nome}"></h:outputText>
	</h:column>
	<h:column>
		<f:facet name="header">
			<h:outputText value="Peso"></h:outputText>
		</f:facet>
		<h:inputText id="peso" value="#{tipoCaracteristica.peso}" disabled="#{!tipoCaracteristica.ativo}"></h:inputText>
	</h:column>
	<h:column>
		<f:facet name="header">
			<h:outputText value="Pontuação Esperada"></h:outputText>
		</f:facet>
		<h:inputText id="pontuacao" value="#{tipoCaracteristica.pontuacaoEsperada}" disabled="#{!tipoCaracteristica.ativo}"></h:inputText>
	</h:column>
	<h:column>
		<h:selectBooleanCheckbox id="checkbox" value="#{tipoCaracteristica.ativo}" onchange="submit();"></h:selectBooleanCheckbox>
	</h:column>
</h:dataTable>
<h:commandButton value="OK" action="#{pc_CaracteristicaEdit.salvar}"></h:commandButton>
</div>
<%@include file="../comum/RodapeComum.jsp"%>
</h:form>
</body>
</f:view>
</html>